﻿using System;

namespace diantou.dataModel
{
    /// <summary>
    /// 企业邮件模版
    /// </summary>
    [fastCSharp.emit.jsonSerialize(IsAllMember = true)]
    [fastCSharp.emit.jsonParse(IsAllMember = true)]
    [fastCSharp.emit.dataSerialize(IsReferenceMember = false)]
    [fastCSharp.code.cSharp.webView.clientType(Name = "diantou.enterpriseMail")]
    [fastCSharp.code.cSharp.sqlModel]
    public partial class enterpriseMail
    {
        /// <summary>
        /// 邮件模版标识
        /// </summary>
        [fastCSharp.code.cSharp.webView.outputAjax]
        public int Id;
        /// <summary>
        /// 企业用户标识
        /// </summary>
        public int UserId;
        /// <summary>
        /// 模板名称
        /// </summary>
        [fastCSharp.emit.dataMember(MaxStringLength = 32)]
        public string Name;
        /// <summary>
        /// 模板标题
        /// </summary>
        [fastCSharp.emit.dataMember(MaxStringLength = 32)]
        public string Title;
        /// <summary>
        /// 是否Email，否则为短信
        /// </summary>
        public bool IsEmail;

        /// <summary>
        /// 内容
        /// </summary>
        [fastCSharp.emit.dataMember(Group = 1, MaxStringLength = 64 << 10)]
        public string Content = string.Empty;
    }
}
